import {createRouter,createWebHashHistory} from 'vue-router';
import routes from './routes';

const router = createRouter({
  history: createWebHashHistory(),
  routes: routes
});

export function routerPush(to) {
  router.push(to)
}

export function routerReplace(to) {
  router.replace(to)
}

export function routerBack() {
  router.back()
}

export function routerForward() {
  router.forward()
}

export function routerGo(delta) {
  router.go(delta)
}


export default router;
